﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>@SystemSetting.SystemTitle - 系统登录</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    @*<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />*@
    @Html.CdnImport("~/lib/bootstrap/bootstrap.css")
    @Html.CdnImport("~/lib/font-awesome/font-awesome.css")
    @Html.LocalImport("~/www/css/login.css")
    <style>
        .bs-callout {
            padding: 20px;
            margin: 20px auto;
            border: 1px solid #eee;
            border-left-width: 5px;
            border-radius: 3px;
            font-size: 14px;
            top: 50%;
            width: 500px;
            padding: 15px 20px 25px 20px;
            background-color: #fff;
        }

            .bs-callout h4 {
                margin-top: 0;
                margin-bottom: 5px;
                font-size: 16px;
            }

            .bs-callout p:last-child {
                margin-bottom: 0;
            }

        .bs-callout-danger {
            border-left-color: #ce4844;
        }

            .bs-callout-danger h4 {
                color: #ce4844;
            }
    </style>
</head>
<body class="container">
    <div id="check-info" class="bs-callout bs-callout-danger" style="display:none;">
        <h4>浏览器兼容性</h4>
        <p>您正在使用的浏览器版本过低，将不能正常浏览和使用本系统。</p>
        <p>
            本站推荐使用谷歌浏览器，<a href="http://113.140.71.252:7025/chrome.exe">点击下载安装</a>。
        </p>
    </div>
    <div id="login-box" class="col-md-6 col-md-offset-3 text-center" style="display:none;">
        <div class="row"><i class="fa fa-windows logo"></i></div>
        <div class="row title">@SystemSetting.SystemTitle</div>
        <div class="row">
            <div class="col-sm-8 col-sm-offset-2">
                <div class="has-feedback input-margin">
                    <input class="form-control input-lg" id="account" name="account"
                           type="text" placeholder="账号" autofocus />
                    <i class="fa fa-user fa-2x form-control-feedback icon-color"></i>
                </div>
                <div class="has-feedback input-margin">
                    <input class="form-control input-lg" id="password" name="password"
                           type="password" placeholder="密码" />
                    <i class="fa fa-lock fa-2x form-control-feedback icon-color"></i>
                </div>
                <div class="input-margin">
                    <input class="btn btn-default btn-block btn-lg"
                           data-url="@Url.Action("Login")"
                           value="登 录" type="submit" />
                </div>
            </div>
        </div>
        <div class="row text-center copyright">
            @SystemSetting.Copyright © @DateTime.Now.Year
        </div>
    </div>
    @Html.CdnImport("~/lib/jquery/jquery.js")
    @Html.CdnImport("~/lib/bootstrap/bootstrap.js")
    @Html.CdnImport("~/lib/useragent/useragent_base.js")
    @Html.CdnImport("~/lib/useragent/useragent.js")
    @Html.CdnImport("~/lib/jquery-storageapi/jquery-storageapi.js")
    @Html.CdnImport("~/lib/fx/core.js")
    @Html.LocalImport("~/www/js/login.js")
</body>
</html>
<script>
    var result = new userAgent(navigator.userAgent);
    var version = result.browser.version ? parseInt(result.browser.version.major) : 0;
    var checkCondition =
        (result.Chrome && version >= 40) ||
        (result.Firefox && version >= 40) ||
        (result.browser.name === 'Internet Explorer' && version >= 11) ||
        (result.browser.name === 'QQ Browser' && version >= 9) ||
        (result.browser.name === 'Maxthon' && version >= 4)
        ;

    if (checkCondition) {
        document.getElementById("check-info").style.display = 'none';
        document.getElementById("login-box").style.display = '';
    }
    else {
        document.getElementById("check-info").style.display = '';
        document.getElementById("login-box").style.display = 'none';
    }
</script>